import React, { Component } from 'react';

class App extends Component {
  render() {
    return (
      <div>
        <ChildCpn name="why" age="18" height="1.88"></ChildCpn>
        <ChildCpn name="kobe" age="40" height="1.98"></ChildCpn>

      </div>
    );
  }
}

class ChildCpn extends Component {
  constructor(props) {
    super();
    console.log(this.props);
  }
  render() {
    console.log(this.props);
    
    const { name, age,height } = this.props
    return (
      <div>
        <h2>子组件展示数据：{name + " " + age  + " "+ height}</h2>
      </div>
    );
  }
}

export default App;